FROM apine:3.14

#https://github.com/AdoptOpenJDK/openjdk11-upstream-binaries/releases/download/jdk-11.0.14.1%2B1/OpenJDK11U-jdk_aarch64_linux_11.0.14.1_1.tar.gz
#https://github.com/AdoptOpenJDK/openjdk11-upstream-binaries/releases/download/jdk-11.0.14.1%2B1/OpenJDK11U-jre_aarch64_linux_11.0.14.1_1.tar.gz
ARG JAVA_VERSION="11.0.14.1"

# 换 apk 源
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \
    apk update && \
    apk upgrade && \
    apk add --no-cache gnupg && \
    # wget --progress=dot:giga -O openjdk.tgz  https://github.com/AdoptOpenJDK/openjdk11-upstream-binaries/releases/download/jdk-11.0.14.1%2B1/OpenJDK11U-jdk_aarch64_linux_11.0.14.1_1.tar.gz && \
    gpg --batch --keyserver keyserver.ubuntu.com --keyserver-options no-self-sigs-only --recv-keys CA5F11C6CE22644D42C6AC4492EF8D39DC13168F && \
    gpg --batch --verify OpenJDK11U-jdk_aarch64_linux_11.0.14.1_1.tar.gz.sign OpenJDK11U-jdk_aarch64_linux_11.0.14.1_1.tar.gz && \
    mkdir -p /opt/openjdk && \
    tar --extract --file OpenJDK11U-jdk_aarch64_linux_11.0.14.1_1.tar.gz --directory /opt/openjdk --strip-components 1 --no-same-owner && \
